package com.order.feign;

import com.cloud.domain.TbUser;
import com.order.feign.fallback.UserFallBack;
import com.order.feign.fallback.factory.UserFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @version 1.0
 * @author: yu.tan
 * @date: 2020/10/13 22:41
 * @Description:
 *  value:用于指定调用哪一个微服务
 */
@FeignClient(value = "service-user"
        ,fallback = UserFallBack.class
//        ,fallbackFactory = UserFallBackFactory.class
)
public interface UserClient {

    @GetMapping("/test")
    public TbUser test();
}
